//
//  CaculatorChain.m
//  链式编程01
//
//  Created by 许卫星 on 17/1/9.
//  Copyright © 2017年 许卫星. All rights reserved.
//

#import "CaculatorChain.h"

@implementation CaculatorChain

- (CaculatorChain *(^)(NSInteger index))add
{
    return ^(NSInteger index){
        self.result += index;
        return self;
    };
}
@end
